const headerStore = {
  namespaced: true,
  state: {
    data: {},
    active:0
  },
  mutations: {
    setData (state, payload) {

      state.active = payload.active
      console.log(state)
    }
  },
  actions: {
    initialData ({ commit }, { payload }) {
      console.log(payload)
      commit('setData', payload)
    }
  }
}

export {
  headerStore
}
